/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="REGIMEINTERNACAO")
public class RegimeInternacaoProteu implements Serializable{

    @Id
    @Column(name="REI_IN_CODIGO")
    private Integer reiInCodigo;
    @Column(name="REI_ST_DESCRICAO")
    private String reiStDescricao;

    public Integer getReiInCodigo() {
        return reiInCodigo;
    }

    public void setReiInCodigo(Integer reiInCodigo) {
        this.reiInCodigo = reiInCodigo;
    }

    public String getReiStDescricao() {
        return reiStDescricao;
    }

    public void setReiStDescricao(String reiStDescricao) {
        this.reiStDescricao = reiStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final RegimeInternacaoProteu other = (RegimeInternacaoProteu) obj;
        if (this.reiInCodigo != other.reiInCodigo && (this.reiInCodigo == null || !this.reiInCodigo.equals(other.reiInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 31 * hash + (this.reiInCodigo != null ? this.reiInCodigo.hashCode() : 0);
        return hash;
    }



}
